package us.x.slowexp.dao.impl;

import java.util.HashMap;

import org.springframework.stereotype.Repository;

import us.x.slowexp.dao.LoginDao;
import us.x.slowexp.domain.Administrator;

@Repository
public class LoginDaoImpl extends BaseDaoImpl<Administrator> implements LoginDao {

	public LoginDaoImpl(){
		this.setNs("us.x.slowexp.mapper.domain.administrator.");
	}
	
	public Administrator login(Administrator administrator) {
		return (Administrator) this.getSqlSession().selectOne(this.getNs() + "login", administrator);
	}

}
